-- GENERATED SPELL FOR [Death Talon Seether] --


function spell0_12464(pUnit, Event) --@Enrage,n/a--
pUnit:FullCastSpellOnTarget(22428,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12464', 8322, 1)
end

function spell1_12464(pUnit, Event) --@Flame Buffet,n/a--
pUnit:FullCastSpellOnTarget(22433,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12464', 20295, 1)
end

function Sorts_12464(pUnit, Event)
local choix_sorts_12464 = math.random(0, 1)
if choix_sorts_12464 == 0 then
pUnit:RegisterEvent('spell0_12464', 1, 1)
end
if choix_sorts_12464 == 1 then
pUnit:RegisterEvent('spell1_12464', 1, 1)
end
end

function mob12464_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12464', math.random(1500, 3000), 1)
end

function mob12464_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12464_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12464_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12464, 1, 'mob12464_Action')
RegisterUnitEvent(12464, 2, 'mob12464_Leave')
RegisterUnitEvent(12464, 3, 'mob12464_Kill')
RegisterUnitEvent(12464, 4, 'mob12464_Die')
